# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=nemo-qml-plugin-devicelock
pkgver=0.2.26
pkgrel=0
pkgdesc="Nemo QML devicelock plugin"
url="https://git.sailfishos.org/mer-core/nemo-qml-plugin-devicelock"
arch="all !armhf" # nemo-qml-plugin-dbus
license="BSD-3-Clause"
depends_dev="qt5-qtbase-dev qt5-qtdeclarative-dev nemo-qml-plugin-dbus-dev nemo-keepalive-dev elogind-dev"
makedepends="$depends_dev"
subpackages="$pkgname-static $pkgname-dev"
source="https://git.sailfishos.org/mer-core/nemo-qml-plugin-devicelock/-/archive/$pkgver/nemo-qml-plugin-devicelock-$pkgver.tar.gz"

build() {
	qmake-qt5
	make
}

package() {
	INSTALL_ROOT="$pkgdir" make install
}

sha512sums="c4363eec4f50056cb2f5d5a94aa6eb0a4b1b23c8f6132b2f812f21abb17bf3d8f6cd0d64ffe6e24548cb2a596516c4b1bed646aa8afdb4efd6a02efaedede3c4  nemo-qml-plugin-devicelock-0.2.26.tar.gz"
